﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utilities
{
    public class Crypto
    {
        private static string base36Chars = "0123456789abcdefghijklmnopqrstuvwxyz";

        public static string Base36(int value)
        {
            string ret = "";

            do
            {
                ret = base36Chars[value % 36] + ret;
                value /= 36;
            }
            while (value > 0);

            return ret;
        }
    }
}
